# -*- coding: UTF-8 -*-

from odoorpc2 import RPC

base_url = 'http://192.168.56.114:8069'
timeout = 50000

dbname = 'T2'
username = 'admin'
password = '123456'

rpc = RPC(base_url, timeout, dbname)


def test_search():
    print('test_search')
    obj = rpc.env.model('res.partner')
    res = obj.search([], order='id desc')
    print('test_search, partner', res)


def test():
    res = rpc.login(username,  password)
    test_search()


test()
